package lock.demo2;

public class Test {
    public static void main(String[] args) {
        Resource r=new Resource();
        Input input=new Input(r);
        OutPut outPut=new OutPut(r);
        Thread t1=new Thread(input);
        Thread t2=new Thread(outPut);
        t1.start();
        t2.start();
    }
}
